<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>HiAll</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />

</head><body>
<?=$header?>
<div class="content">
 <div class="content_in">
<div class="div_body">
    <div id="login_div" class="clearfix">
        <div id="login-l"></div>
        <div id="login-r">
            <form action="?" method="post" onsubmit="return checkLogin()">
            <div class="login-r-info">登录 HiAll <span id="errorMsg"><?=$errorMsg?></span></div>
            <div class="login-row clearfix">
                <div class="login-tt">用户名：</div>
                <div class="login-txt"><input type="text" value="" id="userName" name="userName" class="login_ipt login_ipt_bw"/></div>
                <div class="login-tip"></div>
            </div>
            <div class="login-row clearfix">
                <div class="login-tt">密　码：</div>
                <div class="login-txt"><input type="password" value="" name="passWord" id="passWord"  class="login_ipt login_ipt_bw"/></div>
                <div class="login-tip"></div>
            </div>
            <div class="login-row clearfix">
                <div class="login-tt">验证码：</div>
                <div class="login-txt"><input type="text" value="" name="checkcode" id="checkcode" class="login_ipt"/>
                <img src="?c=CheckCode&ck=<?=$checkCodeHide?>&ck2=<?=SYSTEM_TIME?>" width="70" height="21" valign="absmiddle"/>
                <input type="hidden" value="<?=$checkCodeHide?>" name="checkCodeHide" id="checkCodeHide"/>
                </div>
                <div class="login-tip"></div>
            </div>
            <div class="login-row clearfix">
                <div class="login-tt">&nbsp;</div>
                <div class="login-txt"><label><input type="checkbox" value="1" name="rememberme"/> 记住登录状态</label></div>

            </div>
            <div class="login-row clearfix">
                <div class="login-tt">&nbsp;</div>
                <div class="login-txt"> <button type="submit" class="big-default" id="login-btn"><span><span>登 录</span></span></button>
                    

                </div>
   
            </div>
            <div class="login-row-reg">
                <div style="padding-bottom: 8px;font-weight: bold;font-size:14px;;">还没有账户?</div>
                <a class="big-fresh" href="?c=Register" style="margin-left:70px;"><span>马上注册</span></a>
            </div>
            <input type="hidden" name="c" value="Login" />
            <input type="hidden" name="a" value="Login" />
            </form>
        </div>
    </div>
</div>

</div></div>
<?=$footer?>
<script language="javascript" src="js/jquery.js"></script>
<script>
    function checkLogin(){
        if($("#userName").val() == ''){
            alert('请输入用户名。');
            $("#userName")[0].focus();
            return false;
        }
        if($("#passWord").val() == ''){
            alert('请输入密码。');
            $("#passWord")[0].focus();
            return false;
        }
        if($("#checkcode").val() == ''){
            alert('请输入验证码。');
            $("#checkcode")[0].focus();
            return false;
        }
        return true;
    }
    $(".login_ipt").focus(function(){
        $(this).addClass("iptfocus");
    });
    $(".login_ipt").blur(function(){
        $(this).removeClass("iptfocus");
    });
</script>
</body>

</html>
